﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace Biz
{
    public class CartItem
    {
        public int Count { get; set; }                  // Số lượng bao nhiêu
        public decimal CurrentPrice { get; set; }
        public virtual Product Product { get; set; }    // Mua gì
        public decimal Cost
        {
            get { return (decimal)CurrentPrice * Count; }
        }
    }
}